﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="UserRole.aspx.cs" Inherits="eTruck.Views.Authorizations.List"  EnableEventValidation="false"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>角色管理</title>
    
    <link href="<%=Page.ResolveClientUrl("~/Styles/Site.css")%>" rel="stylesheet" type="text/css" />
    <link rel="stylesheet" type="text/css" href="<%=Page.ResolveClientUrl("~/Styles/ss.gridview.css")%>"/>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <table cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td >
                    <table cellpadding="0" cellspacing="0" width="100%">
                        <tr>
                            <td valign="top" style=" width:49%">
                                <table cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td bgcolor="#e6e8ea" class="h20" style=" height:26px;">
                                            <asp:TextBox ID="txt_SearchUser" runat="server" />
                                            <asp:Button  ID="btn_Search" runat="server"  Text="筛选" 
                                                onclick="btn_Search_Click" />
                                        </td>
                                    </tr>
                                     <tr>
                                    <td style=" height:1px">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td bgcolor="#e6e8ea" class="h20">
                                            <asp:GridView ID="grid_User" runat="server" AutoGenerateColumns="False" 
                                                 EmptyDataText="Data Is Empty" BackColor="White" BorderColor="LightGray" 
                                                BorderStyle="Double" BorderWidth="3px" GridLines="Horizontal" 
                                                Width="100%" onrowdatabound="grid_User_RowDataBound" PagerSettings-Mode="NextPreviousFirstLast"
                                                 PageSize="25" AllowPaging="true" DataKeyNames="UserID"
                                                onpageindexchanging="grid_User_PageIndexChanging" 
                                                onselectedindexchanged="grid_User_SelectedIndexChanged" >
                                                    <Columns>
                                                        <asp:BoundField DataField="UserName" HeaderText="用户名" >
                                                            <ItemStyle BorderColor="LightGray" BorderStyle="Double" BorderWidth="1px" HorizontalAlign="Center"  />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <Columns>
                                                        <asp:BoundField DataField="FirstName" HeaderText="姓" >
                                                            <ItemStyle BorderColor="LightGray" BorderStyle="Double" BorderWidth="1px" HorizontalAlign="Center"  />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <Columns>
                                                        <asp:BoundField DataField="LastName" HeaderText="名" >
                                                            <ItemStyle BorderColor="LightGray" BorderStyle="Double" BorderWidth="1px" HorizontalAlign="Center"  />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <Columns>
                                                        <asp:BoundField DataField="DepartMent" HeaderText="部门" >
                                                            <ItemStyle BorderColor="LightGray" BorderStyle="Double" BorderWidth="1px" HorizontalAlign="Center"  />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <RowStyle BackColor="#EFF3FB" />
                                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <AlternatingRowStyle BackColor="White" />
                                                    <EditRowStyle BackColor="#2461BF" />
                                                    <HeaderStyle CssClass="ss_gv_title" />
                                            </asp:GridView>
                                        </td>
                                    </tr>
                                </table>
                            </td>
                            <td style=" width:2%"></td>
                            <td valign="top" style=" width:49%">
                                <table cellpadding="0" cellspacing="0" width="100%">
                                    <tr>
                                        <td bgcolor="#e6e8ea" class="h20" style=" height:26px;">
                                            选中用户:
                                            <asp:Label ID="lab_CurrAccount" runat="server" />
                                        </td>
                                        
                                    </tr>
                                    <tr>
                                    <td style=" height:1px">&nbsp;</td>
                                    </tr>
                                    <tr>
                                        <td >
                                            <asp:GridView ID="grid_Role" runat="server" AutoGenerateColumns="False" 
            
                                                 EmptyDataText="Data Is Empty"  BackColor="White" BorderColor="LightGray" BorderStyle="Double" BorderWidth="3px"
                                                  DataKeyNames="RoleID"
                                              CellPadding="4" GridLines="Horizontal"  
                                                    Width="100%">
                                                    <Columns>
                                                        <asp:TemplateField HeaderText="分配">
                                                            <ItemTemplate>
                                                                <asp:CheckBox ID="CheckBox1" runat="server" />
                                                            </ItemTemplate>
                                                            
                                                            <ItemStyle BorderColor="LightGray" BorderStyle="Double" BorderWidth="1px" HorizontalAlign="Center"  />
                                                        </asp:TemplateField>
                                                        <asp:BoundField DataField="RouleName" HeaderText="权限组" >
                                                             <ItemStyle BorderColor="LightGray" BorderStyle="Double" BorderWidth="1px" HorizontalAlign="Center"  />
                                                        </asp:BoundField>
                                                    </Columns>
                                                    <RowStyle BackColor="#EFF3FB" />
                                                    <SelectedRowStyle BackColor="#D1DDF1" Font-Bold="True" ForeColor="#333333" />
                                                    <PagerStyle BackColor="#2461BF" ForeColor="White" HorizontalAlign="Center" />
                                                    <AlternatingRowStyle BackColor="White" />
                                                    <EditRowStyle BackColor="#2461BF" />
                                                    <HeaderStyle CssClass="ss_gv_title" />
                                                </asp:GridView>
                                        </td>
                                    </tr>
                                    <tr>
                                        <td>
                                            <asp:Button ID="btnSaveUR" Text="保存" runat="server" 
                                                onclick="btnSaveUR_Click" />
                                        </td>
                                    </tr>
                                </table>
                            </td>
                        </tr>
                    </table>
                </td>
            </tr>
        </table>
    </div>
     <div style=" visibility:hidden;">
                                                <asp:Label ID="lab_Account" runat="server" />
                                            </div>
    </form>
</body>
</html>
